﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ThirdPanel : BasePanel
{
    private void Awake()
    {
        transform.Find("CloseButton").GetComponent<Button>().onClick.AddListener(OnCloseBtnClick);
        transform.Find("ItemButton").GetComponent<Button>().onClick.AddListener(OnItemBtnClick);
    }


    private void OnCloseBtnClick()
    {
        UIManager.Instance.PopPanel();
    }
    private void OnItemBtnClick()
    {
        UIManager.Instance.PushPanel(UIPanelType.Item);
    }
}
